
package com.mxx.qh.dialog;

import android.view.View;
import android.widget.TextView;

import com.mxx.qh.R;
import com.yp.loading.base.BaseDialog;

/**
 * @ClassName: TokenEmptyDialog
 * @Description: java类作用描述
 * @Author: ljf89 (刘江飞)
 * @Date: 2021/1/15-- 18:10
 * @Email: 642371742@qq.com
 */
public class IdentificationUnknownDialog extends BaseDialog {
    private TextView tv_open_wx;
    private OpenWxListener openWxListener;

    public void setOpenWxListener(OpenWxListener openWxListener) {
        this.openWxListener = openWxListener;
    }

    @Override
    public boolean isCancelable() {
        return false;
    }

    @Override
    protected boolean isCancelOutside() {
        return false;
    }

    @Override
    protected int setLayoutId() {
        return R.layout.dialog_identification_unknown;
    }

    @Override
    protected void initView() {
        super.initView();
        tv_open_wx = mRootView.findViewById(R.id.tv_open_wx);
    }

    @Override
    protected void setListener() {
        super.setListener();
        tv_open_wx.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.tv_open_wx) {
            dismiss();
            openWxListener.openWxToPersonalInfo();
        }
    }

    public interface OpenWxListener {
        void openWxToPersonalInfo();
    }
}
